package com.qzboot.facade.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.qzboot.facade.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author zengzhihong
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysRole extends BaseEntity {

    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    private String remark;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Long createByUserId;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String createByUsername;

    private Long updateByUserId;

    private String updateByUsername;

    @TableField(exist = false)
    private List<Long> menuIdList;

}
